<template>
  <div class="procure">
    <el-row :gutter="10" style="margin-bottom: 10px;">
      <el-col :span="3">
        <el-select v-model="value" placeholder="活动状态">
          <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
          </el-option>
        </el-select>
      </el-col>
      <el-col :span="5">
        <el-date-picker v-model="value1" type="datetimerange" start-placeholder="开始日期" end-placeholder="结束日期">
        </el-date-picker>
      </el-col>
      <el-col :span="5">
        <el-input placeholder="请输入供应商名称/单号" v-model="input3" class="input-with-select">
          <el-button slot="append" icon="el-icon-search"
            style="background-color: #1890FF; font-size: 14px; color: #FFFFFF;"></el-button>
        </el-input>
      </el-col>
    </el-row>

    <el-table :data="tableData" height="420" border style="width: 100%">
      <el-table-column prop="date" label="单号" width="180">
      </el-table-column>
      <el-table-column prop="name" label="供应商名称" width="180">
      </el-table-column>
      <el-table-column prop="address" label="开始时间">
      </el-table-column>
      <el-table-column prop="address" label="终止时间">
      </el-table-column>
      <el-table-column prop="address" label="制单人">
      </el-table-column>
      <el-table-column prop="address" label="状态">
      </el-table-column>
      <el-table-column prop="address" label="备注">
      </el-table-column>
      <el-table-column prop="address" label="创建时间">
      </el-table-column>
    </el-table>
    <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="currentPage4"
          :page-sizes="[100, 200, 300, 400]"
          :page-size="100"
          layout="total, sizes, prev, pager, next, jumper"
          :total="400">
        </el-pagination>
  </div>
</template>
  <!-- /purchase/initialvalue/supplierprocuremadd -->
<script>
  export default {
    methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    },
    data() {
      return {
        currentPage1: 5,
        currentPage2: 5,
        currentPage3: 5,
        currentPage4: 4
      };
    }
  }
</script>

<style>
  .procure .el-date-editor--datetimerange.el-input__inner {
    width: 100%;
  }
</style>
